package com.liang.demo.mapper;

import com.liang.demo.po.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {

    List<Menu> selectByRoleId(@Param("roleId") Long id, @Param("level") Integer level);

    List<Menu> selectByParentId(@Param("parentId") Long id, @Param("level") Integer level);

    List<Menu> getMenuList(@Param("adminId") Long adminId);

    List<Menu> getMenuAll();
}
